package com.atguigu.gmall.web.config;

import com.atguigu.gmall.common.util.FeignInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author BrookPeng
 * @Date 2020/12/4 19:47
 * @Version 1.0
 *
 * 配置式
 * application.xml
 * <bean class = 包名 + FeignInterceptor id="feignInterceptor"/>
 */
@Configuration
public class FeignConfig {

    @Bean
    public FeignInterceptor feignInterceptor() {

        return new FeignInterceptor();
    }
}
